/**
 * Copyright (c) Enalean, 2014-2016. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

.theme_picker_container {

    > .theme_variant {
        @mixin picker($main, $dark-grey) {
            border-left-color: $main;
            border-bottom-color: $dark-grey;
        }

        @mixin dark-picker($main) {
            border-left: none;
            width: 20px;
            height: 9px;
            border-bottom: 3px solid $main;
        }

        &.FlamingParrot_Orange {
            @import "variables-orange";
            @include picker($main, $dark-grey);
        }

        &.FlamingParrot_Blue {
            @import "variables-blue";
            @include picker($main, $dark-grey);
        }

        &.FlamingParrot_Green {
            @import 'variables-green';
            @include picker($main, $dark-grey);
        }

        &.FlamingParrot_BlueGrey {
            @import 'variables-bluegrey';
            @include picker($main, $dark-grey);
        }

        &.FlamingParrot_Purple {
            @import 'variables-purple';
            @include picker($main, $dark-grey);
        }

        &.FlamingParrot_Red {
            @import 'variables-red';
            @include picker($main, $dark-grey);
        }

        &.FlamingParrot_DarkOrange {
            @import 'variables-darkorange';
            @include dark-picker($main);
        }

        &.FlamingParrot_DarkBlue {
            @import 'variables-darkblue';
            @include dark-picker($main);
        }

        &.FlamingParrot_DarkGreen {
            @import 'variables-darkgreen';
            @include dark-picker($main);
        }

        &.FlamingParrot_DarkBlueGrey {
            @import 'variables-darkbluegrey';
            @include dark-picker($main);
        }

        &.FlamingParrot_DarkPurple {
            @import 'variables-darkpurple';
            @include dark-picker($main);
        }

        &.FlamingParrot_DarkRed {
            @import 'variables-darkred';
            @include dark-picker($main);
        }
    }

    &.checked > .theme_variant {
        &.FlamingParrot_DarkOrange,
        &.FlamingParrot_DarkBlue,
        &.FlamingParrot_DarkGreen,
        &.FlamingParrot_DarkBlueGrey,
        &.FlamingParrot_DarkPurple,
        &.FlamingParrot_DarkRed {
            width: 16px;
            height: 7px;
        }
    }
}
